getById

  • function
 

Returns a Player in the list of players given its id.

list.getById(id)

Returns a Player in the list of players given its id.

Parameters

  1. id {Number}

Returns

{Player | undefined}

The player if it exists.